.nice-select {
  -webkit-tap-highlight-color: transparent;
  background-color: #fff;
}

/* ========================================
   Google Maps InfoWindow Styles (Modern Design)
   ======================================== */

/* Override default Google Maps InfoWindow container */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    max-width: 360px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
    padding: 0 !important;
}

/* Close button - modern circular design */
.gm-style .gm-ui-hover-effect {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 10 !important;
}

.gm-style .gm-ui-hover-effect:hover {
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.08) rotate(90deg);
}

.gm-style .gm-ui-hover-effect > span {
    background-color: #333 !important;
}

/* Main InfoWindow Container - BEM Methodology */
.tmr-infowindow {
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 360px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
}

/* Image Section */
.tmr-infowindow__image-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.tmr-infowindow__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tmr-infowindow:hover .tmr-infowindow__image {
    transform: scale(1.08);
}

/* Price Badge on Image */
.tmr-infowindow__price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ec6326 0%, #ff7a3d 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(236, 99, 38, 0.4);
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Content Section */
.tmr-infowindow__content {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Title */
.tmr-infowindow__title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}


.tmr-infowindow__title a{
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

.tmr-infowindow__title-link {
    color: #1a1a1a !important;
    text-decoration: none;
    transition: color 0.25s 
ease;
    display: inline-block;
}

.tmr-infowindow__title-link:hover {
    color: #ec6326;
}

.tmr-infowindow__title-text {
    color: #1a1a1a;
}

/* Meta Information Container */
.tmr-infowindow__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Meta Items */
.tmr-infowindow__meta-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #4a5568;
}

/* Icons */
.tmr-infowindow__icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #ec6326;
    margin-top: 1px;
}

/* Address */
.tmr-infowindow__meta-item--address {
    color: #4a5568;
}

/* Phone */
.tmr-infowindow__meta-item--phone {
    font-weight: 500;
}

.tmr-infowindow__phone-link {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.25s ease;
    font-weight: 600;
}

.tmr-infowindow__phone-link:hover {
    color: #ec6326;
}

/* Reviews Section */
.tmr-infowindow__meta-item--reviews {
    align-items: center;
}

.tmr-infowindow__meta-item--reviews .fl-places-contain {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tmr-infowindow__meta-item--reviews .fl-places-contain i {
    color: #FFB800;
    font-size: 16px;
}

.tmr-infowindow__meta-item--reviews .fl-average {
    font-weight: 600;
    color: #2d3748;
}

.tmr-infowindow__meta-item--reviews .fl-average span {
    color: #ec6326;
    font-weight: 700;
}

.tmr-infowindow__meta-item--reviews .fl-places-average {
    color: #718096;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .tmr-infowindow {
        min-width: 280px;
        max-width: 300px;
    }
    
    .tmr-infowindow__image-wrap {
        height: 120px;
    }
    
    .tmr-infowindow__content {
        padding: 12px;
        gap: 8px;
    }
    
    .tmr-infowindow__title {
        font-size: 14px;
    }
    
    .tmr-infowindow__price {
        font-size: 14px;
        padding: 5px 10px;
        bottom: 8px;
        left: 8px;
    }
    
    .tmr-infowindow__meta-item {
        font-size: 12px;
    }
}

/* Smooth Entrance Animation */
@keyframes tmrInfoWindowSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gm-style-iw-c {
    animation: tmrInfoWindowSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effects */
.tmr-infowindow {
    transition: box-shadow 0.3s ease;
}

/* Loading State (optional) */
.tmr-infowindow--loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Action Buttons Section */
.tmr-infowindow__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.tmr-infowindow__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    flex: 1;
    white-space: nowrap;
}

.tmr-infowindow__btn-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

/* Primary Button - View More */
.tmr-infowindow__btn--primary {
    background: linear-gradient(135deg, #ec6326 0%, #ff7a3d 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(236, 99, 38, 0.3);
}

.tmr-infowindow__btn--primary:hover {
    background: linear-gradient(135deg, #d9551f 0%, #ec6326 100%);
    box-shadow: 0 4px 12px rgba(236, 99, 38, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.tmr-infowindow__btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(236, 99, 38, 0.3);
}

/* Secondary Button - View In Listing */
.tmr-infowindow__btn--secondary {
    background: #fff;
    color: #ec6326;
    border: 2px solid #ec6326;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.tmr-infowindow__btn--secondary:hover {
    background: #fef4f0;
    border-color: #d9551f;
    color: #d9551f;
    box-shadow: 0 4px 10px rgba(236, 99, 38, 0.15);
    transform: translateY(-1px);
}

.tmr-infowindow__btn--secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.gm-style-iw-chr {
    position: relative;
    margin-bottom: -40px;
}

/* Responsive Buttons */
@media (max-width: 480px) {
    .tmr-infowindow__actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .tmr-infowindow__btn {
        width: 100%;
        padding: 12px 16px;
    }
}


.gm-style .gm-ui-hover-effect > span {
    background-color: #333 !important;
    margin: 0 !important;
    padding: 0;
    text-align: center;
    position: relative;
    left: 7px;
}

.tmr-infowindow__meta-item--reviews .fl-places-contain i{
    display: none;
}


.gm-style .gm-style-iw-tc {
 display: none;
}

/* Smooth InfoWindow appearance */
.gm-style-iw-d {
    opacity: 1 !important;
    transition: opacity 0.2s ease-in-out;
}

.gm-style-iw {
    opacity: 1 !important;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(0) !important;
}

/* Prevent initial jump and position at top center */
.gm-style .gm-style-iw-c {
    top: -317px !important;
    left: -158px !important;
}

/* Fix positioning */
.gm-style .gm-style-iw-t::after {
    transition: all 0.2s ease-in-out;
}

/* ========================================
   Custom Map Zoom Controls
   ======================================== */

.custom-map-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px;
}

.custom-map-zoom-button {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #333;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.custom-map-zoom-button:hover {
    background: #ec6326;
    color: #fff;
    box-shadow: 0 4px 12px rgba(236, 99, 38, 0.3);
    transform: scale(1.08);
}

.custom-map-zoom-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-map-zoom-controls {
        margin: 8px;
        gap: 6px;
    }
    
    .custom-map-zoom-button {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}