/* GR Vietnam Custom Styles */

/* ---------------------------------------------------------------
   Property & Project Cards
--------------------------------------------------------------- */
.gr-property-card,
.gr-project-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: box-shadow .25s ease, transform .25s ease;
    margin-bottom: 24px;
}
.gr-property-card:hover,
.gr-project-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,.16);
    transform: translateY(-3px);
}

.gr-card-image-link { display: block; position: relative; overflow: hidden; }
.gr-card-image-link img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gr-property-card:hover .gr-card-image-link img,
.gr-project-card:hover .gr-card-image-link img { transform: scale(1.04); }

.gr-card-body { padding: 16px 18px 20px; }
.gr-card-price { font-size: 1.2em; font-weight: 700; color: #c8102e; margin-bottom: 6px; }
.gr-card-title { font-size: 1em; font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.gr-card-title a { color: #1a1a2e; text-decoration: none; }
.gr-card-title a:hover { color: #c8102e; }
.gr-card-address, .gr-card-location { font-size: .85em; color: #666; margin-bottom: 8px; }
.gr-card-tagline { font-size: .9em; color: #444; font-style: italic; margin-bottom: 6px; }

.gr-card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.gr-meta-item { font-size: .82em; color: #555; display: flex; align-items: center; gap: 4px; }

.gr-card-highlights { list-style: none; padding: 0; margin: 8px 0 0; }
.gr-card-highlights li { font-size: .82em; color: #444; padding: 2px 0 2px 14px; position: relative; }
.gr-card-highlights li::before { content: '✓'; position: absolute; left: 0; color: #c8102e; font-weight: 700; }

/* ---------------------------------------------------------------
   Status Badge
--------------------------------------------------------------- */
.gr-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: .75em;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-green  { background: #2ecc71; }
.badge-red    { background: #e74c3c; }
.badge-orange { background: #e67e22; }
.badge-gray   { background: #95a5a6; }

/* ---------------------------------------------------------------
   Stats Bar
--------------------------------------------------------------- */
.gr-stats-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.gr-stat-item { padding: 10px; }
.gr-stat-number { display: block; font-size: 2.2em; font-weight: 800; color: #c8102e; line-height: 1; }
.gr-stat-label  { display: block; font-size: .85em; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; opacity: .85; }

/* ---------------------------------------------------------------
   Filter Bar
--------------------------------------------------------------- */
.gr-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0 24px;
    align-items: center;
}
.gr-filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: .9em;
    background: #fff;
    min-width: 160px;
}
.gr-filter-btn {
    padding: 8px 24px;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .9em;
    font-weight: 600;
    cursor: pointer;
}
.gr-filter-btn:hover { background: #a00d25; }

.gr-no-results { text-align: center; padding: 40px; color: #666; width: 100%; }

/* ---------------------------------------------------------------
   Partners Marquee
--------------------------------------------------------------- */
.gr-marquee-wrap { overflow: hidden; padding: 20px 0; }
.gr-marquee-track {
    display: flex;
    align-items: center;
    animation: gr-marquee 30s linear infinite;
    width: max-content;
}
.gr-marquee-wrap:hover .gr-marquee-track { animation-play-state: paused; }
.gr-marquee-item { padding: 0 32px; flex-shrink: 0; }
.gr-marquee-item img { max-height: 60px; width: auto; filter: grayscale(50%); transition: filter .3s; }
.gr-marquee-item:hover img { filter: grayscale(0); }

@keyframes gr-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------
   Popup
--------------------------------------------------------------- */
.gr-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gr-popup-box {
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    padding: 32px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.gr-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.gr-popup-close:hover { color: #c8102e; }
.gr-popup-content { margin-bottom: 16px; }

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 767px) {
    .gr-card-image-link img { height: 180px; }
    .gr-filter-bar { flex-direction: column; }
    .gr-filter-select,
    .gr-filter-btn { width: 100%; }
    .gr-stat-number { font-size: 1.7em; }
}

/* ===========================
   GR-VN: Flatsome Header Override
   Match globalrealty.com.au nav style
=========================== */

/* Header: light gray background */
#header { background-color: #f5f5f5 !important; border-bottom: 1px solid #e5e5e5; }
#header .header-inner { max-width: 1200px; margin: 0 auto; }

/* Nav links: dark teal, uppercase, spaced */
.nav-dark .nav > li > a,
#header .nav > li > a {
  color: #0d3d3e !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 0 18px !important;
}
.nav-dark .nav > li > a:hover,
#header .nav > li > a:hover { color: #1a8f8e !important; }

/* Logo */
#logo img { max-height: 48px !important; }

/* Remove default Flatsome section padding where needed */
.gr-hero, .gr-stats, .gr-why, .gr-services-cards,
.gr-partners, .gr-contact-section { width: 100%; }

/* Poppins font for whole site */
body, h1, h2, h3, h4, h5, h6, .nav > li > a, button, input, select, textarea {
  font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
}
