/**
 * GeoBuddy Claim Listing Styles
 *
 * @package GeoBuddy_Claim_Listing
 */

/* Claim Modal Customisations */

/* Listing name subtitle — lighter weight, clear gap before consent checkbox */
.geobuddy-claim-listing-name {
	font-size: 1.15rem;
	font-weight: 300 !important;
	margin-top: 0.1rem;
	margin-bottom: 1.75rem;
	color: #333 !important;
	line-height: 1.4;
}

/* Force two-column layout for first/last name row */
.geobuddy-name-row {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 16px;
	margin-left: 0 !important;
	margin-right: 0 !important;
	margin-bottom: 1rem;
}

.geobuddy-name-row .col-6 {
	flex: 1 1 0 !important;
	width: auto !important;
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Custom teal checkbox with white checkmark */
#gd_claim_consent {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	min-width: 22px;
	border: 2px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	cursor: pointer;
	flex-shrink: 0;
	margin-top: 0;
	position: relative;
	transition: background-color 0.15s, border-color 0.15s;
}

#gd_claim_consent:checked {
	background-color: #4ecdc4;
	border-color: #4ecdc4;
}

#gd_claim_consent:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 7px;
	height: 12px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg);
}

.geobuddy-consent-wrap {
	margin-bottom: 1.5rem !important;
}

.geobuddy-consent-wrap .form-check {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 0;
}

.geobuddy-consent-wrap .form-check-label {
	cursor: pointer;
	font-size: 1rem;
	color: #333;
	margin-bottom: 0;
}

/* Position in Business dropdown — match other form-control fields */
#gd_claim_user_position,
select.geobuddy-select-replaced {
	display: block;
	width: 100%;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	background-color: #fff;
	background-image: none;
	border: 1px solid #dee2e6;
	border-radius: 0.5rem;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 12px;
	cursor: pointer;
}

#gd_claim_user_position:focus,
select.geobuddy-select-replaced:focus {
	border-color: #4ecdc4;
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(78, 205, 196, 0.25);
}

/* Full-width Claim Spotlight button with white text */
.geodir-post-claim-button.geobuddy-btn-modified {
	width: 100% !important;
	display: block !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 1.05rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

/* Search Form */
.geobuddy-claim-listing-search {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.geobuddy-search-header {
	background: #e3f2fd;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.geobuddy-search-header p {
	margin: 0;
	color: #333;
	font-size: 16px;
	line-height: 1.5;
	text-align: center;
}

.geobuddy-search-form {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

.geobuddy-search-fields {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;
	margin-bottom: 20px;
}

.geobuddy-field {
	display: flex;
	flex-direction: column;
}

.geobuddy-field label {
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
}

.geobuddy-category-select,
.geobuddy-keyword-input {
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	width: 100%;
	transition: border-color 0.3s ease;
}

.geobuddy-category-select:focus,
.geobuddy-keyword-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Loading State */
.geobuddy-loading {
	text-align: center;
	padding: 20px;
	color: #666;
	font-style: italic;
}

/* Search Results */
.geobuddy-search-results {
	min-height: 100px;
}

.geobuddy-listings-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
}

.geobuddy-listing-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
}

.geobuddy-listing-card.geobuddy-listing-horizontal {
	display: flex;
	flex-direction: row;
}

.geobuddy-listing-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.geobuddy-listing-image {
	width: 200px;
	min-width: 200px;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
	flex-shrink: 0;
}

.geobuddy-listing-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 24px;
	box-sizing: border-box;
}

.geobuddy-listing-image--icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.geobuddy-listing-image--icon i {
	font-size: 72px;
	line-height: 1;
	color: #4ecdc4;
}

.geobuddy-listing-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 200px;
}

.geobuddy-listing-title {
	margin: 0 0 15px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.geobuddy-listing-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.geobuddy-listing-title a:hover {
	color: #0073aa;
	text-decoration: underline;
}

.geobuddy-listing-details {
	margin-bottom: 15px;
	flex-grow: 1;
}

.geobuddy-listing-detail-item {
	margin-bottom: 8px;
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

.geobuddy-listing-detail-item strong {
	color: #333;
	font-weight: 600;
	margin-right: 5px;
}

.geobuddy-listing-detail-item a {
	color: #0073aa;
	text-decoration: none;
}

.geobuddy-listing-detail-item a:hover {
	text-decoration: underline;
}

.geobuddy-listing-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
	flex-grow: 1;
}

.geobuddy-listing-actions {
	margin-top: auto;
	padding-top: 15px;
	align-self: flex-end;
}

.geobuddy-claim-button {
	display: inline-block;
	padding: 12px 30px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	transition: background 0.3s ease;
	text-align: center;
	white-space: nowrap;
}

.geobuddy-claim-button:hover {
	background: #005a87;
	color: #fff;
}

.geobuddy-no-results,
.geobuddy-error {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

.geobuddy-error {
	color: #d63638;
}

/* Add Business Option */
.geobuddy-add-business-option {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.geobuddy-add-business-title {
	font-size: 20px;
	font-weight: 700;
	color: #000;
	margin: 0 0 20px 0;
	text-align: center;
}

.geobuddy-add-business-button {
	display: inline-block;
	padding: 14px 40px;
	background: #40E0D0; /* Turquoise color */
	color: #000;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	transition: background 0.3s ease, transform 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.geobuddy-add-business-button:hover {
	background: #30D0C0; /* Darker turquoise on hover */
	color: #000;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(64, 224, 208, 0.3);
}

/* Packages Display */
.geobuddy-claim-packages-wrapper {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 20px;
}

.geobuddy-claim-packages-container {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 40px;
	align-items: start;
}

/* Left Panel: Listing Details */
.geobuddy-listing-details-panel {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	position: sticky;
	top: 20px;
}

.geobuddy-listing-logo {
	margin-bottom: 20px;
	text-align: center;
}

.geobuddy-listing-logo img {
	max-width: 150px;
	max-height: 150px;
	object-fit: contain;
}

.geobuddy-listing-logo--icon {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
}

.geobuddy-listing-logo--icon i {
	font-size: 80px;
	line-height: 1;
	color: #4ecdc4;
}

.geobuddy-listing-name {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 25px 0;
	color: #333;
	text-align: center;
}

.geobuddy-listing-contact-details {
	margin-bottom: 25px;
}

.geobuddy-listing-detail-item {
	margin-bottom: 12px;
	font-size: 14px;
	color: #555;
	line-height: 1.6;
}

.geobuddy-listing-detail-item strong {
	color: #333;
	font-weight: 600;
	display: block;
	margin-bottom: 4px;
}

.geobuddy-listing-detail-item a {
	color: #0073aa;
	text-decoration: none;
	word-break: break-all;
}

.geobuddy-listing-detail-item a:hover {
	text-decoration: underline;
}

.geobuddy-view-listing-button {
	display: block;
	width: 100%;
	padding: 12px 20px;
	background: #4CAF50;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	transition: background 0.3s ease;
}

.geobuddy-view-listing-button:hover {
	background: #45a049;
	color: #fff;
}

/* Right Panel: Packages */
.geobuddy-packages-panel {
	flex: 1;
}

/* Package Tabs */
.geobuddy-package-tabs {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-bottom: 30px;
	background: #f5f5f5;
	border-radius: 8px;
	padding: 4px;
}

.geobuddy-tab-button {
	flex: 1;
	padding: 12px 30px;
	background: transparent;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
	letter-spacing: 0.5px;
}

.geobuddy-tab-button:hover {
	color: #333;
}

.geobuddy-tab-button.geobuddy-tab-active {
	background: #4CAF50;
	color: #fff;
}

.geobuddy-tab-content {
	display: none;
}

.geobuddy-tab-content.geobuddy-tab-active {
	display: block;
}

.geobuddy-packages-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.geobuddy-package-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 30px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.geobuddy-package-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	border-color: #4CAF50;
}

.geobuddy-package-name {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 25px 0;
	color: #333;
	text-align: left;
}

.geobuddy-package-price {
	margin-top: auto;
	margin-bottom: 20px;
	text-align: center;
}

.geobuddy-price-amount {
	font-size: 36px;
	font-weight: 700;
	color: #333;
	display: block;
}

.geobuddy-package-description {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.geobuddy-package-features {
	list-style: none;
	padding: 0;
	margin: 0 0 25px 0;
	flex-grow: 1;
}

.geobuddy-package-feature {
	padding: 8px 0;
	color: #555;
	font-size: 14px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}

.geobuddy-package-feature i {
	color: #4CAF50;
	font-size: 16px;
	margin-top: 2px;
	flex-shrink: 0;
}

.geobuddy-package-feature span {
	flex: 1;
}

.geobuddy-package-actions {
	margin-top: auto;
	text-align: center;
}

.geobuddy-select-package-button {
	display: block;
	padding: 14px 40px;
	background: #4CAF50;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	transition: background 0.3s ease;
	width: 100%;
}

.geobuddy-select-package-button:hover {
	background: #45a049;
	color: #fff;
}

.geobuddy-no-packages {
	text-align: center;
	padding: 40px 20px;
	color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.geobuddy-claim-packages-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.geobuddy-listing-details-panel {
		position: static;
	}
	
	.geobuddy-packages-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.geobuddy-tab-button {
		padding: 10px 20px;
		font-size: 14px;
	}
}

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

	.geobuddy-listing-card.geobuddy-listing-horizontal {
		flex-direction: column;
	}

	.geobuddy-listing-image {
		width: 100%;
		height: 200px;
	}

	.geobuddy-listing-content {
		min-height: auto;
	}

	.geobuddy-packages-grid {
		grid-template-columns: 1fr;
	}

	.geobuddy-claim-listing-search,
	.geobuddy-claim-packages {
		padding: 15px;
	}

	.geobuddy-search-form {
		padding: 20px;
	}
	
	.geobuddy-claim-packages-wrapper {
		padding: 20px 15px;
	}
	
	.geobuddy-listing-details-panel {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.geobuddy-package-card {
		padding: 20px;
	}

	.geobuddy-package-name {
		font-size: 20px;
	}

	.geobuddy-price-amount {
		font-size: 28px;
	}
}

/* Claim Modal Styles */
.geobuddy-claim-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.geobuddy-claim-modal-content {
	background: #fff;
	border-radius: 8px;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.geobuddy-claim-modal-body {
	padding: 30px;
}

.geobuddy-close-modal {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 5px 10px;
}

.geobuddy-close-modal:hover {
	color: #000;
}

