/* theme/css/styles.css */
var {
        --font-family-primary: 'Montserrat', sans-serif;
        --navy: #001f3f;
    }
/* Apply Montserrat as the primary font */
body {
    font-family: 'Montserrat', sans-serif;
   
}

#page-loader {
    transition: opacity 0.5s ease-in-out;
}

/* Tippy.js custom styles */
.tippy-box[data-theme~='light'] {
  padding: 10px !important;
  font-size: 12px;
  line-height: 1.4;
  background-color: #f9f9f9;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Red color styles */
.red-custom {
    color: #FF4136; /* Bright red */
}

.green-custom {
    color: #0a900a; /* Bright green */
}
.blue-custom {
    color: #1E3A8A; /* Bright blue */

}
.red-custom:hover {
    color: #FF6347; /* Slightly lighter red on hover */
}

/* Navy color styles */
.navy {
    color: #001f3f; /* Navy / Dark Blue */
}

.navy:hover {
    color: #004080; /* Slightly lighter on hover */
}

/* Button specific styles */
.btn-navy {
    background-color: #001f3f;
    color: white;
    border: 1px solid #001f3f; 
    transition: background-color 0.3s ease;
}
.btn-navy:hover {
    background-color: #004080;  /* Lighter navy on hover */
    border-color: #004080;  /* Lighter navy on hover */
}

/* Optional: Add text contrast for readability */
.bg-navy.text-white {
    color: #ffffff; /* White text on navy background */
}

/* Focus state for button */
.btn-navy:focus {
    outline: none;
    border-color: #004080;  /* Lighter border color on focus */
}

/* Custom Navy Background Style */
.bg-navy {
    background-color: #001f3f; /* Navy / Dark Blue */
}

/* Slight Variation for Package 2 */
.bg-navy-2 {
    background-color: #003366; /* Darker Navy */
}

/* Slight Variation for Package 3 */
.bg-navy-3 {
    background-color: #004080; /* Medium Navy */
}

/* Slight Variation for Package 4 */
.bg-navy-4 {
    background-color: #00509E; /* Light Navy */
}


.carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item.hidden {
    opacity: 0;
    z-index: 0;
}

/* Custom grid styles for responsive featured properties */
.responsive-featured-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default: single column for small screens */
    gap: 16px; /* Space between grid items */
}

.responsive-featured-grid > div:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .responsive-featured-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (min-width: 1024px) {
    .responsive-featured-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for large screens */
    }
}

/* Grid layout for the detail page */
.property-detail-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: single column */
    gap: 24px;
}

@media (min-width: 1024px) {
    .property-detail-grid {
        grid-template-columns: 2fr 1fr; /* Two columns for large screens */
    }
}

/* Contact Form Styling */

/* Center and adjust width for large screens */
.contact-form-container {
    max-width: 65%; /* Half width for large screens */
    margin: 0 auto; /* Center the form horizontally */
    padding-top: 2rem; /* Add space above the form */
    margin-top: 1rem; /* Ovo će osigurati razmak */
}

/* Full width for small screens */
@media (max-width: 1024px) {
    .contact-form-container {
        max-width: 100%; /* Full width on smaller screens */
        padding-top: 1rem; /* Less spacing on smaller screens */
        margin-top: 1.5rem; /* Dodaj razmak za mobilne */
    }
}

/* Button adjustments */
.btn-contact {
    width: 100%; /* Full width on small screens */
    padding: 0.75rem 1.5rem; /* Add padding for better click area */
}

/* Button size adjustment for large screens */
@media (min-width: 1024px) {
    .btn-contact {
        width: auto; /* Fit content */
        padding: 0.5rem 2rem; /* Compact size for large screens */
    }
}

/* Responsive Search Form */
.responsive-search-form {
    display: grid;
    grid-template-columns: 1fr; /* Default: Single column */
    gap: 16px; /* Razmak između polja */
}

/* Large screens: Three rows and two columns */
@media (min-width: 1024px) {
    .responsive-search-form {
        grid-template-columns: repeat(2, 1fr); /* Dve kolone */
        grid-template-rows: repeat(4, auto); /* 4  reda */
    }
}

/* Dugmad u četvrtom redu */
.search-btns {
    display: flex;
    flex-direction: column; /* Jedno ispod drugog na manjim ekranima */
    gap: 8px; /* Razmak između dugmadi */
    align-items: flex-end;
}

/* Podrazumevano: dugmad u kolonama zauzimaju punu širinu */
.search-btns button,
.search-btns a {
    width: 100%; /* Dugmad zauzimaju punu širinu na manjim ekranima */
}

/* Dugmad jedno do drugog na srednjim i velikim ekranima */
@media (min-width: 768px) {
    .search-btns {
        flex-direction: row; /* Dugmad u istom redu */
        justify-content: space-between; /* Razmak između dugmadi */
        gap: 16px;
        width: auto;
    }

    .search-btns button,
    .search-btns a {
        width: auto; /* Prirodna širina na većim ekranima */
    }
}


/* Responsive grid for properties */
.responsive-property-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default: 1 column for small screens */
    gap: 16px; /* Space between grid items */
    margin-top: 20px;
}

@media (min-width: 768px) {
    .responsive-property-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
}

@media (min-width: 1024px) {
    .responsive-property-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for large screens */
    }
}

/* Ensure images within the grid are responsive */
.responsive-property-grid img {
    width: 100%; /* Fully responsive width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    object-fit: cover; /* Crop the image nicely */
}

/* Ensure cards are well-styled */
.responsive-property-grid .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* Quick Search Form Styling */
.quick-search {
    max-width: 400px; /* Make the form smaller */
    margin: 0 auto; /* Center the form */
}

/* Ensure consistency with the main search form */
.quick-search h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #001f3f; /* Navy */
    text-align: center;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .quick-search {
        max-width: 100%; /* Use available space on larger screens */
    }
}


/* Grid layout for the main content */
.responsive-main-content {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column */
    gap: 1.5rem; /* Space between columns */
}

@media (min-width: 1024px) {
    .responsive-main-content {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for large screens */
    }
}

/* tests */
/* Grid layout for the property grid  on test page*/
.test-property-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: 1 column */
    gap: 1.5rem; /* Space between grid items */
}

@media (min-width: 768px) {
    .test-property-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens and up */
    }
}

/* Grid layout for forms */
.property-form-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
}

/* Full-width for fields like "description" */
.property-form-full-width {
    grid-column: span 3;
}

/* Responsive layout for medium screens */
@media (max-width: 1024px) {
    .property-form-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for medium screens */
    }
    .property-form-full-width {
        grid-column: span 2; /* Adjust to span 2 columns */
    }
}

/* Responsive layout for small screens */
@media (max-width: 768px) {
    .property-form-grid {
        grid-template-columns: 1fr; /* 1 column for small screens */
    }
    .property-form-full-width {
        grid-column: span 1; /* Adjust to span 1 column */
    }
}

/* TEST listinga sa colonmama */

/* Layout grid */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolona za male ekrane */
    gap: 20px;
    align-self: start;
}

@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr 3fr; /* Sidebar 1/4, Listing 3/4 za srednje ekrane */
    }
}

/* Sidebar styling */
.sidebar {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    align-self: start;
}

/* Listing grid */
.listing-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolona za male ekrane */
    gap: 20px;
}

@media (min-width: 768px) {
    .listing-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolone za srednje ekrane */
    }
}

@media (min-width: 1024px) {
    .listing-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 kolone za velike ekrane */
    }
}

/* Single listing card */
.listing-card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.listing-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

/* Listing card content */
/* Glavni container za pretragu */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Grid layout za formu */
.search-form {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolona za male ekrane */
    gap: 20px;
}

@media (min-width: 768px) {
    .search-form {
        grid-template-columns: 1fr 1fr; /* 2 kolone za srednje ekrane */
    }
}

@media (min-width: 1024px) {
    .search-form {
        grid-template-columns: 1fr 1fr 1fr; /* 3 kolone za velike ekrane */
    }
}

/* Stilovi za form-control */
.search-form .form-control {
    display: flex;
    flex-direction: column;
}

/* Stilovi za listu nekretnina  */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts columns dynamically */
    gap: 20px; /* Space between cards */
    margin: 0; /* Center the grid */
    width: 100%; /* Make grid full width */
    max-width: 1200px; /* Limit the grid width */
    padding: 0; /* Add padding for mobile screens */
}

/* Property Card */
.property-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    height: 280px;
}

.property-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Property Image */
/* Property Image with Aspect Ratio */
.property-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Postavlja omjer slike, npr. 16:9 */
    object-fit: cover; /* Prilagođava sliku unutar zadanog omjera */
    border-radius: 8px; /* Okrugli rubovi za dosljednost s karticama */
}


/* Property Details */
.property-details {
    padding: 16px;
    text-align: center;
}

.property-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}


.property-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: blue;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.property-link:hover {
    color: #0056b3;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center; /* Centers the content horizontally */
    align-items: center; /* Centers the buttons and info vertically */
    margin: 20px auto; /* Adds spacing above and below the pagination */
    gap: 10px; /* Adds space between the buttons and text */
    text-align: center; /* Ensures text alignment is centered */
    width: auto; /* Ensures pagination takes full width */
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}


.pagination-button {
    padding: 8px 16px;
    background-color: var(--navy);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.pagination-button:hover {
    background-color: #0056b3;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}


/* Mobile Screens: Single column */
@media (max-width: 767px) {
    .property-grid {
        grid-template-columns: 1fr; /* Single column */
        padding: 0 10px;
    }
    .property-card {
        height: 430px; /* Manja visina za mobilne uređaje */
    }
    .property-card img {
        height: 300px; /* Manje slike na mobilnim uređajima */
    }
}   

/* iPad Screens: Two columns */
@media (min-width: 768px) and (max-width: 1023px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns */
    }
}

/* Large Screens: Three columns */
@media (min-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns */
    }
}


/* Responsive table and card container dashboard  */
@media (max-width: 768px) {
    .card-container {
        display: block !important;
    }
    .table-container {
        display: none;
    }
}

@media (min-width: 769px) {
    .card-container {
        display: none !important;
    }
    .table-container {
        display: block;
    }
}


/* property analytics */
.property-desc-analytics {
    display: flex;
    gap: 24px;
    margin-top: 1.5rem;
}

.property-description {
    flex: 3;
}

.property-analytics {
    flex: 1;
    background: #f9fafb;
    border-left: 1px solid #ddd;
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .property-desc-analytics {
        flex-direction: column;
    }

    .property-analytics {
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 1rem;
    }
}

