/*
Theme Name: Digitaali2024-lahikalataja
Theme URI: https://www.kalaruoka.fi/
Description: Child theme for Digitaali2024
Author: Teemu
Author URI: https://www.kalaruoka.fi/
Template: Digitaali2024
Version: 20250911
*/

/* minimikorkeus, ettei footteri nouse ylös. Ainakin etusivulle, kavenna valintaa tarvittaessa. */
/* article {
    min-height: calc(100vh - 280px);
} */

p {
	margin-bottom: 25px !important;
}
dl, ol, ul {
	margin-bottom: 25px;
}
.carousel-indicators li.active {
	background-color: #ffc107 !important;
}
.site-content {
	min-height: calc(100vh - 200px);
}

h1, .h1 {
	line-height: 1.2 !important;
}

@media (min-width: 768px) {
	h1, .h1 {
		font-size: 2.7rem !important;
		line-height: 1.1 !important;
	}
}	

.post-date {
	display: none;
}

/* Kalastajakatgoria piiloon syöttölomakkeella */
[data-argument="default_category"] {
    display: none;
}

h3.geodir-entry-title {
	margin-bottom: 0.6rem;
}

.otgs-development-site-front-end {
	display: none;
}

@media (max-width: 768px) {
	.geodir-add-listing .col-form-label {
		font-weight: bold;
	}
}

/* profiilissa nappeja mitkä näyttää huonolta. */
.btn.btn-outline-dark {
	border: 0;
	outline: 0;
	background: transparent;
	color: black;

	padding: 6px 0 0 0;
}
.btn.btn-outline-secondary {
	border: 0;
	outline: 0;
	background: black;
	color: white;

	padding: 6px 0 0 0;
}

/* Karttamarkkerit */
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	background-color: rgba(255, 193, 7, 0.6) !important;
	border: 2px solid rgba(255, 193, 7, 0.8);
}

/* Karttapopup */
.gd-bubble .geodir-entry-title {
	margin-bottom: 10px !important;
}

.geodir_map_container .leaflet-popup-scrolled {
	border: 0;
}

.gd-bubble .geodir_post_meta_title {
	display: none;
}
.gd-bubble .geodir-field-post_title .geodir_post_meta_icon {
	display: none;
}
.gd-bubble .list-group-item {
	padding-top: 0;
	padding-left: 0;
	padding-right: 0;
	border: 0;
}
.gd-bubble .geodir-field-i_fish_andor_sell_fish_during_these_months ul {
	padding-left: 0;
	margin-left: 0;
	list-style: none;
}
.leaflet-popup-content p {
	margin: 0 0 5px 0 !important;
	padding: 0;
}

.gd-bubble .dg-contact-button {
	font-size: 12.5px;
	padding-left: 10px; 
	padding-right: 10px;
	margin-bottom: 0.5rem;
}
.leaflet-container a.btn {
	color: white;
}
.dg-fish.list-inline ul {
	padding-left: 0;
	margin-left: 0;
	list-style: none;
	display: inline-block !important;
	margin-bottom: 0;
}

.dg-fish.list-inline ul li {
	display: inline;
}
.dg-fish.list-inline ul li:before {
	content: ", ";
}
.dg-fish.list-inline ul li:first-of-type:before {
	content: "";
}
.geodir-field-address > span {
	/* padding-left: 15px;  */
	display: inline-block;
}
.geodir-field-address span:nth-child(1),
.geodir-field-address span:nth-child(2) {
	padding-left: 0;
}

/* Listausnäkymä */
.geodir-listing-posts .geodir-entry-title {
	margin-bottom: 0.2rem !important;
}

a.btn-primary[href^="mailto"], a.btn-primary[href^="tel:"] {
	color: #fff;
}

.geodir_button {
	margin-top: 5px;
	margin-bottom: 5px;
}

.dg-fisher-card {
	width: 900px;
	max-width: 100%;
	margin: 0 auto 25px auto;
	border: 0;
	box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.12);
}


.dg-fisher-card .dg-fisher-card-content {
	padding: 20px;
}

@media (min-width: 768px) {
	.dg-fisher-card .dg-fisher-card-content {
		padding: 40px;
	}	
}

.dg-fisher-card .geodir-entry-title {
	text-align: center;
	margin-top: 0;
	padding-top: 0;
}

body.single-gd_place .gd-author-actions {
	text-align: center !important;
}

.dg-fisher-card h1,
.dg-fisher-card h1 a,
.dg-fisher-card h2,
.dg-fisher-card h2 a,
.dg-fisher-card h3,
.dg-fisher-card h3 a,
.dg-fisher-card h4,
.dg-fisher-card h4 a,
.dg-fisher-card h5,
.dg-fisher-card h5 a,
.dg-fisher-card h6 {

}

ul.dg-fisher-info, 
.dg-company-info {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	font-weight: bold;
	font-size: 1.2rem;
	font-family: 'obvia', sans-serif;
}

.dg-fisher-pitch {
	font-size: .9rem;
	font-style: italic;
}

.dg-key-value-pair .dg-value {
	font-size: .9rem;
}

.dg-dl-row {
	margin: 15px 0;
	align-items: center;
}
.dg-dl-row.bordered {
	border-bottom: 1px solid #ddd;
	padding-bottom: 15px;
	margin-bottom: 15px;
}

.dg-dl-row > [class*="col-"] {
	padding: 0 25px 0 0;
	margin: 0;
}

.dg-dl-row .dg-value {
	font-size: .9rem;
}

.dg-buttons,
.dg-flex-list {
	display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: start;
    flex-direction: revert;
    align-items: center;
	
}

.dg-buttons.centered {
	justify-content: center;
}

.dg-flex-list.buttons > * {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 4px;
	background-color: #df9b1c;
	color: #fff;
	/* box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border: 1px solid #ddd; */
	text-decoration: none;
	font-weight: 600;
}

.dg-list-unstyled {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.dg-fisher-card .dg-buttons {
	
}
.dg-fisher-card .dg-buttons br,
.dg-flex-list br {
	display: none;
}

.dg-fisher-card .btn {
	display: inline-block;
}

#nouto .geodir_post_meta_title {
	padding-right: 10px;
}

.dg-quote {
	display: block;
	font-style: italic;
	padding: 25px;
	/* background-color: #f0f0f0; */
	/* border-left: 5px solid #fbb500; */
	font-size: 1rem;
	border-bottom-left-radius: 30px;
	border-top-right-radius: 30px;
}

@media (min-width: 768px) {
	.dg-quote {
		font-size: 1.2rem;
	}
}

.kalastajakortti-wrapper .dg-quote {
	padding-top: 0;
    width: 700px;
    max-width: 100%;
    margin: auto;
}



.dg-contact-box {
	padding: 25px;
	background-color: #ffc107;
	border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
}
.kalastajakortti-wrapper.is-not-active,
.kalastajakortti-wrapper.is-not-active *,
.is-fisherman-not-active,
.is-fisherman-not-active *,
.is-fisherman-not-active-body .dg-fisher-card-content,
.is-fisherman-not-active-body .dg-fisher-card-content * {
	/* cross-browser grayscale */
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	filter: grayscale(100%);
	opacity: 0.9;
	pointer-events: none;
}

.is-not-active .dg-contact-box {
	background-color: #ccc;
}
.dg-contact-box .dg-caption {
	font-weight: bold;
	font-family: 'obvia', sans-serif;
	font-size: 1.1rem;
	margin-bottom: 5px;
}	
.dg-quote p {
	padding: 0;
	margin-top: 15px;
	margin-bottom: 15px;
}

.dg-quote::before {
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "\f10d";
	font-size: 2rem;
	color: #fbb500;
}

.dg-highlight-box {
	background-color: #fbb500;
	padding: 15px !important;
	border-radius: 8px;
	margin-bottom: 30px;
	font-size: 1.1rem;
}

#nouto .geodir_post_meta_title {
	font-weight: 600;
}

.dg-card-view .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
	
}
.dg-card-view [class*="col-"] {
	flex: 100% !important;
    max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.dg-card-view .dg-quote {
	font-size: .9rem;
	padding: 0 0 15px 0;
	margin-bottom: 0;
	border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
}

.dg-card-view .dg-dl-row {
	margin-top: 5px;
}
.dg-card-view .dg-dl-row .dg-value {
	font-size: 12px;
}

.dg-card-view .btn {
	font-size: 12px;
	padding: 6px 12px;
}

.dg-card-view .dg-dl-row.bordered {
	padding-bottom: 2.5px;
	margin-bottom: 2.5px;
}
.dg-card-view .dg-dl-row.bordered {
	border-bottom: 0;
}
.leaflet-container a {
	color: #DF9B1B;
}

.dg-card-view .dg-buttons > * {
	margin: 0;
}

.leaflet-popup-content .geodir-bubble_image,
.leaflet-popup-content .dg-fisher-info {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.leaflet-popup-content .dg-fisher-info {
	margin-bottom: 5px !important;
}

.leaflet-popup-content .kalastajakortti-wrapper > .row:nth-child(1) {
	margin-top: 5px !important;
	margin-bottom: 5px !important;
}
.leaflet-popup-content .geodir-entry-title {
	margin-top: 0 !important;
	margin-bottom: 5px !important;
}
.leaflet-popup-content .geodir-entry-title > a {
	color:#DF9B1B !important;
}

.leaflet-container a:not(.btn) {
	color:#DF9B1B !important;
}

.dg-card-view .dg-flex-list.buttons > a {
	color: #fff !important;
}
.dg-card-view .dg-contact-box {
	padding: 15px;
	border-radius: 5px;
	background-color: #212529;
}
.dg-card-view .dg-contact-box .dg-buttons > div > a.btn {
	margin: 0;
	background-color: #3b3b3b;
	border-color: #fff;
	border-width: 2px;
	line-height: 1.2;
}
.dg-card-view .dg-contact-box .dg-buttons > div:nth-child(1) > a.btn {
	background-color: #DF9B1B;
	border-color: #DF9B1B;
	color: #fff;
}

.dg-contact-button-text {
	display: block;
	margin: 2.5px 0;
	color: white;
}

body.single-gd_place .dg-contact-button-text {
	color: #000;
}

@media (max-width: 991px) {
	body.single-gd_place .dg-buttons > * {
		width: 100% !important;
		max-width: 100% !important;
	}
}

.btn-primary.disabled, .btn-primary:disabled {
	background-color: #999 !important;
	border: #999 !important;
}

.dg-card-view:not(.geodir-bubble-meta-side) .dg-contact-box .dg-buttons {
	flex-direction: column;
}

.dg-contact-box .dg-buttons {
	display: flex;
	flex-direction: column;
	/* gap: 10px;
	justify-content: center;
	flex-direction: column;
	align-items: stretch; */
}

.dg-contact-box .dg-buttons > div > a {
	width: 100%;
}

@media (max-width: 499px) {
	.dg-card-view .dg-contact-box .dg-buttons > * {
		width: 100% !important;
		max-width: 100% !important;
	}
}

@media (min-width: 500px) {
	.dg-card-view .dg-contact-box .dg-buttons {
		flex-direction: row !important;
		gap: 0;
		justify-content: space-between;
		align-items: flex-start;
	}
	.dg-card-view .dg-contact-box .dg-buttons > * {
		width: calc(50% - 5px) !important;
		max-width: calc(50% - 5px) !important;
		/* display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		width: calc(50% - 5px) !important;
		max-width: calc(50% - 5px) !important; */
	}
}

@media (min-width: 992px) {
	.single-gd_place .dg-contact-box .dg-buttons {
		flex-direction: row !important;
		gap: 0;
		justify-content: space-between;
		align-items: flex-start;
	}
	.single-gd_place .dg-contact-box .dg-buttons > div > a {
		margin: 0;
	}
}

.dg-card-view.geodir-bubble-meta-side .dg-quote {
	font-size: .8rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.dg-card-view.geodir-bubble-meta-side .dg-contact-box {
	margin-bottom: 5px;
}

/* .dg-card-view .dg-contact-box .dg-buttons > * {
	width: 100%;
	text-align: center;
} */
.dg-card-view .dg-contact-box .dg-caption {
	font-size: .9rem;
	color: #fff;
}

.dg-card-view .dg-fisher-pitch.dg-quote {
	position: relative;
	padding: 0 0 0 30px;
}
.dg-card-view .dg-fisher-pitch.dg-quote::before {
	position: absolute;
	left: 0;
	top: -5px;
	font-size: 20px;
}
.dg-card-view .dg-fisher-pitch.dg-quote p {
	margin-top: 0;
}

.dg-card-view ul.dg-fisher-info, 
.dg-card-view .dg-company-info {
	font-size: 1rem;
}
.dg-card-view .dg-card-body {
	padding: 20px;
	font-size: .9rem;
}
.form-group {
	margin-bottom: 5px;
}

/* toinen hakunapeista piiloo */
.geodir-advance-search {
    display: none;
}

body.search .geodir-search .form-group {
	margin-top:2.5px;
	margin-bottom:2.5px;
}

.wp-block-geodirectory-geodir-widget-search {
	padding: 25px 25px 10px;
    background: #393c40;
	margin-bottom: 20px;
}

@media (max-width: 500px) {
	.wp-block-geodirectory-geodir-widget-search {
		padding: 15px 15px 0.5px;
	}
}

.wp-block-geodirectory-geodir-widget-search input[type="text"], 
.wp-block-geodirectory-geodir-widget-search input[type="search"], 
.wp-block-geodirectory-geodir-widget-search input[type="email"], 
.wp-block-geodirectory-geodir-widget-search input[type="tel"], 
.wp-block-geodirectory-geodir-widget-search input[type="number"], 
.wp-block-geodirectory-geodir-widget-search textarea {
	background: white;
	border: 1px solid #fff;
	border-radius: 2.5px !important;
}

.text-primary {
    color: #DF9B1B!important
}

a.text-primary:focus,a.text-primary:hover {
    color: #DF9B1B!important
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	width: 100% !important;
	max-width: 100% !important;
}

.geodir-bubble-meta-bottom {
	display: none !important;
}

/* .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    width: calc(100% - 50px) !important;
	max-width: calc(var(--wp--style--global--wide-size)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
} */

:root :where(.is-layout-constrained) > * {
	margin-block-start: 0 !important;
}

.dg-card {
	box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.12);
}

.dropdown-item.active, .dropdown-item:active {
	background-color: #fbb500;
	color: #fff;
}

.btn-outline-primary:hover {
	border-color: #fbb500;
}

.bg-primary {
	background-color: #fbb500 !important;
}

.badge-primary {
	background-color: #df9b1b;
    border-color: #df9b1b;
    border: 2px solid #df9b1b;
}

ul.dg-fisher-info a {
	text-decoration: none;
}



.navbar-brand span {
	display: none;
	font-size: .8rem;
	font-weight: bold;
	margin-left: 0;
	vertical-align: middle;
	color: #000;
}

@media (min-width: 350px) {
	.navbar-brand span {
		width: calc(100% - 100px);
		display: inline-block;
		font-size: .7rem;
		white-space: wrap;
	}
}

@media (min-width: 500px) {
	.navbar-brand span {
		font-size: 1rem;
	}
}

@media (min-width: 768px) { 
	.navbar-brand span { 
		padding-right: 50px;
	}
	.navbar-brand span {
		font-size: 1.2rem;
	}
}

#dg-navi-toggler {
	display: none;
}

a.navbar-brand,
a.navbar-brand:hover,
a.navbar-brand:focus {
	text-decoration: none;
}

.site-header .navbar-brand.secondary-logo img {
	width: 90px !important;
	height: 90px !important;
	max-width: 90px !important;
}
@media (min-width: 992px) {
    .site-header .navbar-brand.secondary-logo img {
        width: 125px !important;
        height: 125px !important;
    }

	.site-header .navbar-brand.main-logo img {
		height: 125px !important;
		width: auto !important;
	}
}

img.leaflet-marker-icon {
	width: 45px !important;
	height: 45px !important;
}

.gd-ic-field { 
	margin: 25px 0;
	padding: 15px;
	background: #f8f9fa;
	border: 1px solid #b0b0b0;	
 }
 @media (min-width: 300px) {
	.gd-ic-field { 
		padding: 25px;
	}	
 }
.gd-ic-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.gd-ic-desc {
	color: #666;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.gd-ic-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
}

.gd-ic-item {
	position: relative;
	width: 120px;
	height: 120px;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	background: #fafafa;
}

.gd-ic-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gd-ic-remove {
	position: absolute;
	top: 2px;
	right: 2px;
	border: 0;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 12px;
	cursor: pointer;
	line-height: 22px;
	font-size: 16px;
}

.gd-ic-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.gd-ic-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 0;
	cursor: pointer;
	padding: .4rem 2rem;
    text-align: center;
    color: white;
    background: #000;
    border-radius: 3px;
    border: 3px solid #000;
    text-decoration: none;
    font-family: obiva, sans-serif;
    font-weight: 600;
}

.gd-ic-upload-btn input[type=file] {
	display: none;
}

.gd-ic-help {
	color: #666;
}

/* Modal */
.gd-ic-modal[hidden] {
	display: none;
}

.gd-ic-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.gd-ic-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.gd-ic-dialog {
	position: relative;
	max-width: min(95vw, 900px);
	max-height: min(95vh, 720px);
	margin: 5vh auto;
	background: #fff;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gd-ic-canvas-wrap {
	position: relative;
	flex: 1;
	min-height: 300px;
	background: #222;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gd-ic-canvas-wrap img {
	max-width: 100%;
}

.gd-ic-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	padding: 0.5rem;
	border-top: 1px solid #eee;
	background: #f8f8f8;
}

.gd-ic-btn {
	border: 1px solid #ddd;
	background: #000;
	color: #fff;
	border-radius: 3px;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.35rem 0.6rem;
	cursor: pointer;
}

.gd-ic-spacer {
	flex: 1;
}

.geodir-add-files {
	margin-top: 25px !important;
}

.btn.dg-clear-filters {
	padding: 5px 10px;
	background-color: #aeaeae;
	font-size: .8rem;
}

.btn.dg-use-my-location {
	display: inline-block;
    padding: 10px 20px;
    margin: 0;
    position: absolute;
    top: 1px;
    right: 5px;
    font-size: 1rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.wp-block-geodirectory-geodir-widget-search input[type="text"], .wp-block-geodirectory-geodir-widget-search input[type="search"], .wp-block-geodirectory-geodir-widget-search input[type="email"], .wp-block-geodirectory-geodir-widget-search input[type="tel"], .wp-block-geodirectory-geodir-widget-search input[type="number"], .wp-block-geodirectory-geodir-widget-search textarea {
	height: auto;
}

.dg-location-description {
	margin-top: 15px;
	padding: 15px;
	font-size: .9rem;
	background: #ffcd53;
}
.dg-location-description p {
	margin: 0 !important;
}

.dg-overlay-panel {
	max-width: 550px !important;
}
.dg-overlay-footer {
	background-color: #eee;
}

@media (max-width: 576px) {
	.dg-overlay-footer .btn {
		padding: 5px 8px !important;
		font-size: .8rem !important;
	}
}

@media (max-width: 320px) {
	.dg-full-card-btn i {
		display: none;
	}
}

.site-footer-top .widget {
	margin: 0;
}


.site-footer {
	background-color: #121111;
	color: #fff;
}
.site-footer a {
	color: #fff !important;
}
.site-footer-top {
	background-color: #000;
	color: #fff;
}
.site-footer-top {
	padding-top: 50px;
	padding-bottom: 50px;
}
.site-footer-top a,
.site-footer-top a.nav-link, 
.site-footer-top a:hover, 
.site-footer-top a:active {
	color: #fff;
}

.site-footer-top ul.wp-block-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.site-footer-top ul.wp-block-list li {
	margin-bottom: 10px;
}
.site-footer-top ul.footer-menu li a.nav-link {
	padding: 0;
}
.site-footer-top ul.footer-menu li {
	margin-bottom: 10px;
}

.footer-logo {
	display: inline-block;
	padding: 10px;
	border-radius: 8px;
}
.footer-logo img {
	margin-left: -5px;
}
