/* Reset Button */
.towns__reset {
    margin-bottom: 1rem;
}
.towns__reset a {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    background: #406e8e; /* deep muted blue */
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s ease, transform 0.2s ease;
}
.towns__reset a:hover {
    background: #2b4c63;
    transform: translateY(-2px);
}
.towns__reset i {
    margin-right: 0.5rem;
}

/* Alphabet Navigation */
.towns__nav {
    background: #f5f6f7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.towns__letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.towns__letter {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    background: #e9ecef;
    text-decoration: none;
    transition: all 0.25s ease;
}
.towns__letter:hover {
    background: #c9e3f5; /* soft light blue */
    color: #1f3b57;
}
.towns__letter.active {
    background: #1f3b57; /* strong navy-blue */
    color: white;
}

/* Town List */
.towns__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}
.towns__item {
    flex: 0 0 calc(16.66% - 12px);
    background: #ffffff;
    border: 1px solid #e3e6ea;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.towns__item:hover {
    background: #e6f0f8; /* very light blue tint */
    transform: translateY(-4px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
}
.towns__item a {
    text-decoration: none;
    color: #222;
    font-size: 1rem;
    font-weight: 500;
}
.towns__item:hover a {
    color: #1a5276;
}

/* Responsive */
@media (max-width: 768px) {
    .towns__item {
        flex: 0 0 48%;
    }
}
@media (max-width: 480px) {
    .towns__item {
        flex: 0 0 100%;
    }
}

div#town-directory-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.company-list-row {
    display: block;
    flex-direction: column;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.company-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.company-thumbnail img {
    border-radius: 6px;
    max-width: 220px;
    width: 100%;
    object-fit: cover;
    filter: grayscale(0.1);
    transition: filter 0.3s;
}
.company-thumbnail img:hover {
    filter: grayscale(0);
}

.company-info {
    flex: 1;
    min-width: 250px;
}

.company-name a {
    font-size: 1.25rem;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.company-name a:hover {
    color: #1e70bf;
}

.company-address {
    font-size: 0.95rem;
    color: #555;
    margin: 10px 0 0;
    line-height: 1.6;
    font-weight: 600;
}
.company-shortdesc{
    font-size: 0.95rem;
    color: #555;
    margin: 10px 0 0;
    line-height: 1.6;
}


.company-categories {
    margin-top: 15px;
}
.category-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e70bf;
    background: #eef4fa;
    border-radius: 4px;
    padding: 6px 10px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.company-schedule {
    min-width: 200px;
    flex-shrink: 0;
}

.contact-button a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 25px;
    font-size: 0.95rem;
    background-color: #1e70bf;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    width: 100%;
}
.contact-button a:hover {
    background-color: #155a99;
    color: white;
}

/* Open/closed labels */
.open-label,
.close-open-label.open-color {
    color: #2ecc71;
    font-weight: bold;
}
.closed-label,
.close-open-label.closed-color {
    color: #e74c3c;
    font-weight: bold;
}

/* Map styling */
.company-map iframe {
    width: 100%;
    height: 210px;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .company-content {
        flex-direction: column;
        padding: 15px;
    }
    .company-thumbnail img {
        max-width: 100%;
    }
    .company-schedule {
        width: 100%;
        text-align: left;
        margin-top: 15px;
    }
}

/* Css for Clinic Page */

.comp-facebook::before {
    content: "\f09a";
    font-family: Fontawesome;
    font-size: 14px;
    color: black;
    margin-right: 10px;
}

.comp-phone::before {
    content: "\f095";
    font-family: Fontawesome;
    font-size: 14px;
    color: black;
    margin-right: 10px;
}

.comp-website::before {
    content: "\f0ac";
    font-family: Fontawesome;
    font-size: 14px;
    color: black;
    margin-right: 10px;
}

a.town-link {
    color: green;
    font-size: 22px;
    font-weight: 600;
}

a.town-link::before {
    content: ">";
    border: solid 1px #ccc;
    color: #838383;
    padding: 0px 10px 1px 10px;
    vertical-align: middle;
    border-radius: 5px;
    margin-right: 10px;
}

div#details {
    font-size: 16px;
    width: 100%;
}

.toggle-btn-wrapper button#toggleButton {
    background: #f9f9f9;
    font-size: 16px;
    padding: 5px 10px 5px 15px;
    font-weight: 500;
    border-width: 1px;
    border-style: solid;
    border-color: #e6e6e6;
    width: 100%;
    text-align: left;
    color: #0d0d0d;
    border-radius: 5px;
    box-shadow: 0px 3px 5px #a6a6a6;
}


.contact-info-data {
  
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #fff;
}
.div-container {
    width: 100%;
    margin: auto;
    border: solid 1px #ccc4;
    margin-top: 30px;
    padding: 10px;
}
.heading-area {
    width: 100%;
    display: flex;
}
.company-picture {
    padding-right: 20px;
    width: 40%;
}

.description-area {
    padding-top: 20px;
}
.flex-columns {
    display: flex;
    width: auto;
    background: whitesmoke;
    padding: 20px;
    border-radius: 5px;
}

.col-sm-4 {
    width: 25%;
    padding: 15px;
    border-left: solid 1px #d6d6d6;
}
.full-description {
    padding-top: 20px;
    padding-bottom: 20px;
}

.contact-info-data .btn {
   
    background: green;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}
.contact-info-data .btn a{
	color:#fff;
	text-decoration:none;

}


.no-schedule-available-header {
    font-size: 14px;
  
}


.company-picture img {
    width: 100%;
    height: 275px;
    object-fit: cover;
}

.opening-hours-wrapper table td {
    border: solid 1px #bdbdbd;
    font-size: 16px;
}

.opening-hours-wrapper table {
    margin: 0 0 1.5em;
    width: 100%;
    background: whitesmoke;
    border: solid 0px #fff;

}

@media screen and (max-width: 500px) { 
		.div-container {
			width: 100%;
			margin: auto;
			border: solid 1px #ccc4;
			margin-top: 30px;
			padding: 10px;
		}
		.heading-area {
			width: 100%;
			display: block;
		}
		.company-picture {
			padding-right: 20px;
			width: 100%;
		}
		.company-data-area {
			width: 100%;
		}
	.heading-area .company-picture {
		padding-right:0px;
	}
	
	.alignleft, .alignright {
		float: left;
		display: block;
		margin-left: 1px;
		margin-right: 1px;
	}
	.opening-hours-wrapper table td 	{
		border: solid 1px #bdbdbd;
		font-size: 16px;
		width: 33.3%;
	}
}

@media screen and (min-width:501px ) and ( max-width: 769px) {
		.alignleft, .alignright {
			float: left;
			display: block;
			margin-left: 1px;
			margin-right: 1px;
		}
		.opening-hours-wrapper table td {
		border: solid 1px #bdbdbd;
		font-size: 16px;
		width: 33.3%;
	}
}


.firma-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    padding-top: 20px !important;
}

.firma-left-wrapper,
.firma-right-wrapper {
    flex: 1 1 100%;
}
a.town-card h4 {
    text-transform: capitalize;
}
@media (min-width: 768px) {

    .firma-right-wrapper {
        width: 100%;
    }
    .firma-category {
        flex-wrap: wrap;
    }
    .firma-right-wrapper .entry-content table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    div#town-directory-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-button a {
        text-align: center;
    }
    .firma-left-wrapper {
        flex: 1 1 35%;
    }

    .firma-right-wrapper {
        flex: 1 1 60%;
    }
    a.town-card {
        width: 220px;
        max-width: 100%;
    }
    .modern-town-grid {
        grid-template-columns: repeat(1,  1fr) !important;
    }
}

.firma-image img {
    width: 100%;
    border-radius: 10px;
}

.firma-schedule-today,
.contact-info-data,
.near-firma-wrapper,
.other-details-wrapper,
.full-map-area {
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.claim-listing-btn a {
    display: inline-block;
    background: #007f5f;
    color: #fff;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 50px;
    text-align: center;
    transition: background 0.3s;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 14px;
}
.claim-listing-btn a:hover {
    background: #005f45;
}

.firma-left-wrapper .claim-listing-btn a {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.comp-address span,
.comp-review span {
    display: block;
    margin-left: 1.5rem;
}

label.firma-address,
label.near-firma-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.claimed-wrapper {
    display: inline-block;
    background-color: #555;
    color: white;
    padding: 0.3rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.firma-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.firma-category .comp-category {
    display: inline-block;
    background-color: #e5e7eb;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    margin-right: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
}

.entry-content {
    padding-top: 1rem;
}

.full-map-area iframe {
    border: none;
    border-radius: 8px;
}

.unclaimed-message,
.claimed-message {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.other-details-content,
.no-other-details {
    margin-top: 0.5rem;
    color: #444;
}

.fa {
    margin-right: 8px;
    color: #444;
}



a.town-link::before {
    content: "\f100";
    font-family: 'FontAwesome';
    color: #121212;
    vertical-align: top;
    margin-right: 10px;
}

a.town-link {
    color: #121212;
    font-size: 22px;
    font-weight: 600;
    text-transform: capitalize;
}

.directory-town-wrapper {
    border-radius: 4px;
    border: none;
    background: #fff;
    padding: 0 20px;
}
.firma-wrapper {
    padding: 0 20px;
}
.opening-hours-wrapper h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 30px;
}

.opening-hours-wrapper h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 30px;
}
.opening-hours-wrapper table tr:nth-child(even) {
    background: #bcbcbc3b;
}

.opening-hours-wrapper table td {
    border: solid 1px #ededed;
    font-size: 15px;
    padding: 5px;
    text-transform: lowercase;
}

.search-results {
    background: whitesmoke;
    padding: 30px;
    border-radius: 10px;
}

.fa-location-dot:before {
    content: "\f3c5";
    font-family: Fontawesome;
    margin-right: 10px;
}

.fa-phone:before {
    content: "\f095";
    font-family: Fontawesome;
    margin-right: 10px;
}

button.num-btn {
    background: #909090;
    border-radius: 2px;
}

.address-area {
    background: #909090;
    border-radius: 2px;
}

.btn-area {
    width: auto;
    display: inline;
}
/* Add this CSS to your theme stylesheet or in the WordPress Customizer */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-wrapper a {
    padding: 10px;
    text-decoration: none;
    background-color: #f2f2f2;
    margin: 0 5px;
    border-radius: 5px;
    color: #333;
}

.pagination-wrapper a:hover {
    background-color: #0073e5;
    color: #fff;
}

.pagination-wrapper .current {
    background-color: #0073e5;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin: 0 5px;
}

.pagination-wrapper .dots {
    padding: 10px;
}

.firma-schedule-today {
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
}
.comp-phone {
    margin-bottom: 15px;
}
.comp-website {
    margin-bottom: 15px;
}

.comp-facebook {
    margin-bottom: 15px;
}

.firma-schedule-today i {
    margin-right: 15px;
}

.comp-btn a:hover, .claim-listing-btn a:hover {
    color: white !important;
}

body.search-results {
    padding: 0 !important;
}

input#s {
    width: 85%;
}
.search-radios {
    display: flex;
    flex-wrap: wrap;
}

.radio-wrap {
    padding: 15px 30px 15px 0;
}

.radio-wrap label {
    font-size: 20px;
}

.alert {
    padding: 15px;
    border: 1px solid;
    border-radius: 4px;
    margin: 20px;
}
.alert-success {
    color: green;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.alert-failed {
    color: red;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.firma-category {
    display: flex;
    gap: 15px;
}

div#town-directory-container .comp-category {
    margin: 0;
}

div#town-directory-container .firma-category {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
}
.modern-town-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    justify-items: center;
    padding: 20px 0;
    width: 220px;
    grid-auto-flow: column;
}

.town-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    max-width: 220px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.town-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.town-card-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}

.town-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.town-card-meta {
    padding: 12px;
}

.town-card-meta h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

.category-label {
    font-size: 0.85rem;
    color: #777;
}


.seofy-featured-companies-wrapper {
    margin: 2rem 0;
}

.seofy-featured-companies-wrapper .seofy-company-grid {
    display: grid;
    gap: 2rem;
}

.seofy-featured-companies-wrapper .seofy-company-grid.columns-3 {
    grid-template-columns: repeat(auto-fill, minmax(31%, 1fr));
}
.seofy-featured-companies-wrapper .seofy-company-grid.columns-4 {
    grid-template-columns: repeat(auto-fill, minmax(23%, 1fr));
}

.seofy-featured-companies-wrapper .company-list-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.seofy-featured-companies-wrapper .company-list-card:hover {
    transform: translateY(-5px);
}

.seofy-featured-companies-wrapper .company-thumbnail {
    position: relative;
}

.seofy-featured-companies-wrapper .company-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    max-width:100%;
}

.seofy-featured-companies-wrapper .company-schedule {
    background: #ffffff;
    color: black;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 10px;
}

.seofy-featured-companies-wrapper .contact-button {
    margin-top: 8px;
}

.seofy-featured-companies-wrapper .contact-button a {
    display: inline-block;
    background: #1e70bf;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.seofy-featured-companies-wrapper .company-info {
    padding: 1rem;
    flex-grow: 1;
}

.seofy-featured-companies-wrapper .company-name {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #333;
}

.seofy-featured-companies-wrapper .company-address,
.seofy-featured-companies-wrapper .company-shortdesc {
    font-size: 0.95rem;
    color: #666;
    margin: 0.25rem 0;
}

.seofy-featured-companies-wrapper .company-categories {
    margin-top: auto;
    padding-top: 1rem;
}

.seofy-featured-companies-wrapper .category-tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 5px;
    margin-bottom: 5px;
}
/* Mobile-specific scroll handling */
@media (max-width: 768px) {
    .entry-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .entry-content thead,
    .entry-content tbody,
    .entry-content tr,
    .entry-content th,
    .entry-content td {
        display: inline-block;
    }

    .entry-content table::-webkit-scrollbar {
        height: 6px;
    }
	.modern-town-grid {
			width: 100% !important;
	}
	div#town-directory-container {

			grid-template-columns: repeat(1, 1fr);

	}
	.firma-right-wrapper {
			width: 100%;
	}
	.entry-content thead, .entry-content tbody, .entry-content tr, .entry-content th, .entry-content td {
			display: revert !important;
	}

    .seofy-featured-companies-wrapper .seofy-company-grid.columns-4 {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    .firma-left-wrapper {
        width: 100%;
    }
}