/* ============================================================
   Saransh Dainik — Yellow Pages (local business directory)
   ============================================================ */
.yp-page { padding: 28px 0 56px; }

/* Hero / directory header */
.yp-hero {
	background: linear-gradient(135deg, #07152f 0%, #0c2a50 100%);
	border-radius: 14px;
	padding: 30px 26px 26px;
	margin-bottom: 34px;
	color: #fff;
	box-shadow: 0 6px 18px rgba(7, 21, 47, .18);
}
.yp-hero-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px 20px; margin-bottom: 20px; }
.yp-hero-head { min-width: 0; }
.yp-hero-title { margin: 0 0 6px; font-size: 30px; font-weight: 800; line-height: 1.2; color: #fff; }
.yp-hero-sub { margin: 0; color: #c3d2e4; font-size: 15px; }

/* Search bar — prominent, attached button */
.yp-search-bar {
	display: flex;
	align-items: center;
	width: 100%;
	background: #fff;
	border-radius: 12px;
	padding: 6px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
}
.yp-search-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.yp-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8ba0b4; font-size: 18px; pointer-events: none; z-index: 1; }
.yp-search-input {
	width: 100%;
	height: 50px;
	border: 0;
	outline: none;
	border-radius: 8px;
	padding: 0 14px 0 44px;
	font-size: 15px;
	color: #07152f;
	background: transparent;
}
.yp-search-input:focus { box-shadow: 0 0 0 3px rgba(4, 148, 177, .28); }
.yp-search-input::placeholder { color: #8ba0b4; }

/* Filter row */
.yp-filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.yp-filter-item { flex: 1 1 200px; min-width: 0; }
.yp-filter-label { display: block; font-size: 12px; font-weight: 700; color: #aebfD2; text-transform: uppercase; letter-spacing: .4px; margin: 0 0 5px; }
.yp-select {
	width: 100%;
	height: 44px;
	border-radius: 8px;
	border: 1px solid #cfe0ec;
	background-color: #fff;
	color: #07152f;
	font-size: 14.5px;
	padding: 0 38px 0 14px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b8093' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.yp-select:focus { outline: none; border-color: #0494b1; box-shadow: 0 0 0 3px rgba(4, 148, 177, .22); }
.yp-select::-ms-expand { display: none; }

/* Sections */
.yp-section { margin-bottom: 36px; }
.yp-section-title {
	font-size: 23px;
	font-weight: 800;
	color: #07152f;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 3px solid #0494b1;
	display: flex;
	align-items: center;
	gap: 8px;
}
.yp-section-results .yp-section-title { font-size: 25px; }

/* Category cards */
.yp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.yp-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #fff;
	border: 1px solid #e3ecf3;
	border-radius: 12px;
	padding: 18px 12px 16px;
	text-decoration: none;
	color: #07152f;
	box-shadow: 0 1px 3px rgba(7, 21, 47, .06);
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.yp-cat-card:hover { border-color: #0494b1; box-shadow: 0 6px 16px rgba(4, 148, 177, .16); transform: translateY(-2px); text-decoration: none; color: #07152f; }
.yp-cat-icon {
	width: 52px; height: 52px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #eaf6fa; color: #0494b1; font-size: 24px;
	margin-bottom: 10px; flex: 0 0 auto;
}
.yp-cat-icon-glyph { font-size: 26px; line-height: 1; }
.yp-cat-name { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.yp-cat-count { font-size: 12.5px; color: #6b8093; }

/* Grid + cards */
.yp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.yp-card {
	background: #fff;
	border: 1px solid #e6edf3;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-shadow: 0 2px 8px rgba(7, 21, 47, .06);
	transition: box-shadow .15s ease, transform .15s ease;
}
.yp-card:hover { box-shadow: 0 8px 20px rgba(7, 21, 47, .12); transform: translateY(-2px); }
.yp-card-img {
	display: block;
	position: relative;
	height: 150px;
	overflow: hidden;
	background: #f2f5f8;
}
/* Soft blurred/dimmed fill of the SAME image (same URL -> browser fetches once,
   never another business's image). Fills unused bands so wide banners and tall
   logos never leave an empty frame, without ever cropping the foreground. */
.yp-card-img::before {
	content: '';
	position: absolute;
	inset: 0;
	background: inherit;
	background-size: cover;
	background-position: center;
	filter: blur(18px) brightness(.92);
	transform: scale(1.08);
	pointer-events: none;
}
/* Foreground: full logo/banner always visible - never cover-cropped. */
.yp-card-img img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	padding: 14px;
	box-sizing: border-box;
	margin: 0 auto;
}
/* Safe, terminating broken-image fallback (matches the empty-placeholder look). */
.yp-card-img-broken { background-image: none !important; }
.yp-card-img-broken::before { display: none; }
.yp-card-img-broken img { display: none; }
.yp-card-img-broken::after {
	content: attr(data-initial);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 46px;
	font-weight: 700;
	color: #8fa7ba;
	background: linear-gradient(135deg, #e7eef5, #d6e4ef);
}
.yp-card-img-empty { display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 700; color: #8fa7ba; background: linear-gradient(135deg, #e7eef5, #d6e4ef); }
.yp-card-body { padding: 14px 15px; flex: 1; display: flex; flex-direction: column; }
.yp-card-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.yp-card-title a { color: #07152f; }
.yp-card-cat { font-size: 12.5px; color: #0494b1; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.yp-card-desc { font-size: 13px; color: #566b7d; margin: 0 0 8px; }
.yp-card-loc { font-size: 13px; color: #4a5d6e; margin-bottom: 8px; }
.yp-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }

/* Business World homepage — Slick multi-card slider (final-UI phase).
   Only applies once slick initialises on the homepage (.yp-grid[data-sd-yp-slider]).
   The directory page grid (.yp-grid without the attribute) keeps the CSS grid.
   - 3 visible cards on desktop; cards clear the section frame (list padding);
   - equal card heights via a flex track; logos never stretch (object-fit cover). */
.yp-grid.slick-initialized {
	display: block;
}
.yp-grid.slick-initialized .slick-list { padding: 6px 10px; overflow: hidden; }
.yp-grid.slick-initialized .slick-track {
	display: flex;
	align-items: stretch;
	gap: 18px;                    /* 12-18px card gaps (professional frame spacing) */
}
.yp-grid.slick-initialized .slick-slide {
	float: none;
	height: auto;
	flex: 1 1 0;                  /* equal shares; the gap creates the spacing */
	min-width: 0;
	box-sizing: border-box;
}
.yp-grid.slick-initialized .slick-slide > .yp-card { height: 100%; }

/* desktop slider controls (inside the section frame) */
.yp-home-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
	padding-right: 10px;
}
.yp-nav-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50%;
	border: 1px solid #c9d8e4;
	background: #ffffff;
	color: #07152f;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}
.yp-nav-arrow:hover,
.yp-nav-arrow:focus-visible { background: #eaf2f8; outline: 2px solid #0494b1; outline-offset: 1px; }
.yp-nav-arrow.slick-disabled { opacity: .35; pointer-events: none; }

/* Badges */
.yp-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.yp-badge-featured { background: #ffc107; color: #4a3300; }
.yp-badge-verified { background: #2e9e5b; color: #fff; }

/* Buttons */
.yp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	text-align: center;
	border-radius: 8px;
	padding: 10px 18px;
	min-height: 40px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
}
.yp-btn:hover { text-decoration: none; }
.yp-btn-view { background: #0494b1; color: #fff; }
.yp-btn-view:hover { background: #03758d; color: #fff; }
.yp-btn-call { background: #2e9e5b; color: #fff; }
.yp-btn-call:hover { background: #26864d; color: #fff; }
.yp-btn-wa { background: #25d366; color: #fff; }
.yp-btn-wa:hover { background: #1eb75a; color: #fff; }
.yp-btn-dir { background: #dd4b39; color: #fff; }
.yp-btn-dir:hover { background: #c03e2d; color: #fff; }
.yp-btn-web { background: #3b5998; color: #fff; }
.yp-btn-web:hover { background: #2f4577; color: #fff; }
.yp-btn-search { background: #c8102e; color: #fff; height: 50px; padding: 0 24px; flex: 0 0 auto; }
.yp-btn-search:hover { background: #a50d26; color: #fff; }
.yp-btn-add { background: #ffc107; color: #4a3300; }
.yp-btn-add:hover { background: #efb000; color: #4a3300; }
.yp-cta-add { white-space: nowrap; min-height: 44px; padding: 10px 20px; }
.yp-btn-outline { background: #fff; border: 1px solid #0494b1; color: #0494b1; }
.yp-btn-outline:hover { background: #0494b1; color: #fff; }
.yp-btn-submit { background: #0494b1; color: #fff; font-size: 15px; padding: 12px 24px; min-height: 46px; }
.yp-btn-addrow { background: #eef5f9; color: #0494b1; border: 1px dashed #9cc5d6; margin-top: 6px; }
.yp-btn-remove { background: #fbe3e3; color: #c0392b; padding: 6px 11px; }

/* Pagination / empty */
.yp-pagination { margin-top: 24px; text-align: center; }
.yp-pagination .pagination { margin: 0; }
.yp-pagination .pagination > li > a, .yp-pagination .pagination > li > span { color: #07152f; border-radius: 6px !important; margin: 0 3px; }
.yp-pagination .pagination > .active > a { background: #0494b1; border-color: #0494b1; }
.yp-empty {
	text-align: center;
	padding: 56px 20px;
	background: #f7fafc;
	border: 1px dashed #cfdfe9;
	border-radius: 14px;
	margin-top: 6px;
}
.yp-empty-icon { font-size: 42px; color: #9fb6c8; display: block; margin-bottom: 12px; }
.yp-empty-title { font-size: 20px; font-weight: 800; color: #07152f; margin: 0 0 6px; }
.yp-empty-text { color: #6b8093; margin: 0 0 18px; font-size: 14.5px; }

/* Detail */
.yp-cover { height: 240px; overflow: hidden; border-radius: 10px; margin-bottom: 18px; }
.yp-cover img { width: 100%; height: 100%; object-fit: cover; }
.yp-detail-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.yp-detail-logo { width: 110px; height: 110px; border-radius: 10px; overflow: hidden; background: #eef3f7; flex: 0 0 110px; }
.yp-detail-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.yp-detail-logo .yp-card-img-empty { width: 100%; height: 100%; font-size: 40px; }
.yp-detail-name { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: #07152f; }
.yp-detail-cat { color: #0494b1; font-weight: 600; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.yp-detail-short { color: #4a5d6e; margin: 0; }
.yp-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.yp-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.yp-box { background: #fff; border: 1px solid #e3ecf3; border-radius: 8px; padding: 16px; margin-bottom: 18px; }
.yp-box-title { font-size: 17px; font-weight: 700; margin: 0 0 12px; color: #07152f; border-bottom: 2px solid #0494b1; padding-bottom: 6px; }
.yp-text { color: #33475b; line-height: 1.65; }
.yp-list-item { padding: 8px 0; border-bottom: 1px solid #eef3f7; }
.yp-list-item:last-child { border-bottom: none; }
.yp-list-name { font-weight: 700; color: #07152f; }
.yp-list-desc { color: #566b7d; font-size: 13px; }
.yp-list-price { color: #0494b1; font-weight: 600; font-size: 13px; }
.yp-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.yp-product { border: 1px solid #eef3f7; border-radius: 8px; padding: 10px; }
.yp-product img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.yp-product-name { font-weight: 700; color: #07152f; }
.yp-product-desc { font-size: 12.5px; color: #566b7d; }
.yp-product-price { color: #0494b1; font-weight: 600; font-size: 13px; }
.yp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.yp-gallery-item img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; }
.yp-contact { width: 100%; font-size: 13.5px; }
.yp-contact th { text-align: left; color: #566b7d; font-weight: 600; padding: 5px 8px 5px 0; vertical-align: top; white-space: nowrap; }
.yp-contact td { padding: 5px 0; color: #07152f; word-break: break-word; }

/* Form */
.yp-form-wrap { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid #e3ecf3; border-radius: 10px; padding: 24px; }
.yp-form-note { color: #7a8fa0; }
.yp-form-row { display: flex; flex-wrap: wrap; gap: 14px; }
.yp-form-col { flex: 1 1 250px; }
.yp-field { margin-bottom: 14px; }
.yp-field label { font-weight: 600; color: #07152f; margin-bottom: 4px; display: block; }
.yp-form-sub { font-size: 16px; font-weight: 700; margin: 18px 0 10px; color: #07152f; border-bottom: 2px solid #0494b1; padding-bottom: 5px; }
.yp-form-submit { margin-top: 16px; }
.yp-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.yp-hint { color: #7a8fa0; }
.yp-dyn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.yp-dyn-name { flex: 1 1 180px; }
.yp-dyn-desc { flex: 2 1 220px; }
.yp-dyn-price { flex: 1 1 140px; }
.yp-dyn-file { flex: 1 1 200px; }
.yp-recaptcha { margin: 10px 0; }

/* Home section */
.yp-home-section { padding: 26px 0 34px; background: #f4f8fb; border-top: 1px solid #e3ecf3; }
.yp-home-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.yp-home-title { font-size: 22px; font-weight: 800; color: #07152f; margin: 0; }
.yp-home-actions { display: flex; gap: 8px; }

/* Responsive */
@media (max-width: 991px) {
	.yp-detail-grid { grid-template-columns: 1fr; }
	.yp-hero { padding: 26px 22px 22px; }
	.yp-hero-title { font-size: 27px; }
	.yp-cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.yp-page { padding: 20px 0 90px; } /* bottom clearance for the floating radio */
	.yp-hero { padding: 22px 16px 20px; margin-bottom: 28px; border-radius: 12px; }
	.yp-hero-top { flex-direction: column; align-items: stretch; }
	.yp-hero-title { font-size: 24px; }
	.yp-hero-sub { font-size: 14px; }
	.yp-cta-add { width: 100%; justify-content: center; }
	/* search: full-width input, full-width attached button */
	.yp-search-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; }
	.yp-search-input-wrap { width: 100%; }
	.yp-search-input { height: 48px; padding-right: 14px; }
	.yp-btn-search { width: 100%; height: 48px; }
	/* filters: one per row */
	.yp-filter-row { flex-direction: column; }
	.yp-filter-item { flex: 1 1 100%; }
	.yp-select { height: 46px; }
	/* categories: 2 columns; business cards: 1 column */
	.yp-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.yp-grid { grid-template-columns: 1fr; gap: 16px; }
	.yp-section { margin-bottom: 30px; }
	.yp-section-title { font-size: 21px; }
	.yp-cover { height: 180px; }
	.yp-detail-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
	.yp-hero-title { font-size: 23px; }
	.yp-card-img { height: 150px; }
	.yp-form-wrap { padding: 16px; }
}
