#wpgl-results-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

#wpgl-results-count {
    font-size: 1.1em;
    font-weight: 600;
    color: #4285f4;
}

.wpgl-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

#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;
	position:relative;
}

@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;
	    background: white;
	padding:15px;
    box-shadow: 0 0 25px #00000015;
    border-radius: 12px;
}

.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;
}

#wpgl-pagination {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
	display:flex;
	align-items:center;
	justify-content:center;
}

.wpgl-page-btn {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 8px;
}

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

.wpgl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.wpgl-page-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wpgl-page-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wpgl-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wpgl-unlock-btn {
  background: #ff5722 !important;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 8px;
  font-size: 0.85em;
}

.wpgl-unlock-btn:hover {
  background: #e64a19 !important;
}

.wpgl-place-footer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wpgl-contact-unlocked {
  margin-top: 12px;
  padding: 12px;
  background: #e8f5e8;
  border-radius: 6px;
  border-left: 4px solid #4caf50;
}

.wpgl-contact-phone {
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 4px;
}

.wpgl-contact-website {
  color: #4285f4;
  text-decoration: none;
}

.wpgl-contact-website:hover {
  text-decoration: underline;
}

.status-open { color: #4caf50; font-weight: 500; }
.status-closed { color: #ff9800; font-weight: 500; }
.status-closed-perm { color: #f44336; font-weight: 500; }

#atlas-account { max-width: 800px; margin: 0 auto; }
.atlas-balance-section { text-align: center; margin: 30px 0; }
.balance-card { 
    background: linear-gradient(135deg, #4285f4, #34a853); 
    color: white; 
    padding: 30px; 
    border-radius: 12px; 
    display: inline-block; 
}
.balance-big { font-size: 3em; font-weight: bold; margin: 10px 0; }
.buy-button { 
    background: #ffeb3b; color: #333; 
    padding: 12px 24px; border-radius: 25px; 
    text-decoration: none; font-weight: 600; 
}
.buy-button:hover { background: #fdd835; transform: translateY(-2px); }

.atlas-history, .credits-log, .contacts-list { background: white; margin: 20px 0; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.history-item, .log-item, .contact-item { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 12px 0; border-bottom: 1px solid #eee; 
}
.history-item:last-child, .log-item:last-child { border-bottom: none; }
.log-item.positive { color: #4caf50; }
.log-item.negative { color: #f44336; }
.invoice-btn { 
    background: #4285f4; color: white; 
    padding: 6px 12px; border-radius: 4px; 
    text-decoration: none; font-size: 0.85em; 
}
.contact-item div { flex: 1; }
.contact-item a { color: #4285f4; }

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