#wpgl-search .alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}


.wpgl-search-form input:not([type="button"]):not([type="submit"]){
	color:black!important;
}

.wpgl-place-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wpgl-place-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.wpgl-place-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.wpgl-place-name {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
}

.wpgl-rating {
    background: #f4b400;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.wpgl-place-address {
    margin: 0 0 4px 0;
    color: #666;
    font-size: 0.95em;
}

.wpgl-place-types {
    margin: 0 0 12px 0;
    color: #888;
}

.wpgl-details-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.2s;
}

.wpgl-details-btn:hover {
    background: #3367d6;
}

/* Modal overlay */
.wpgl-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.wpgl-modal.active {
    display: flex;
}

/* Modal content */
.wpgl-modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: wpglSlideIn 0.3s ease;
}

@keyframes wpglSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wpgl-modal-header {
    background: #4285f4;
    color: white;
    padding: 20px;
    margin: 0;
}

.wpgl-modal-name {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.wpgl-modal-rating {
    background: #f4b400;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    display: inline-block;
}

.wpgl-modal-body {
    padding: 24px;
}

.wpgl-modal-field {
    margin-bottom: 16px;
}

.wpgl-modal-field strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.wpgl-modal-link {
    color: #4285f4;
    text-decoration: none;
}

.wpgl-modal-link:hover {
    text-decoration: underline;
}

.wpgl-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpgl-modal-close:hover {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.wpgl-search-form {
    display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 24px;
    align-items: end;
}

.wpgl-search-form input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.wpgl-search-form input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66,133,244,0.2);
}

#wpgl-search-btn {
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

#wpgl-search-btn:hover {
    background: #3367d6;
}

@media(max-width:768px){
	.wpgl-search-form{
		grid-template-columns: 1fr auto;
	}
}
